<?php

$ch = curl_init();
$options = array(
	//CURLOPT_PROXY	=> $proxy,
	CURLOPT_URL		=> $_GET['url'],
	CURLOPT_USERAGENT=> $_SERVER['HTTP_USER_AGENT'],
	//CURLOPT_COOKIEJAR=> 'cookie.txt',
	CURLOPT_HEADER	=> 1,
	CURLOPT_RETURNTRANSFER=> 1,
	CURLOPT_NOBODY	=> 1,
	CURLOPT_FOLLOWLOCATION=> 1,
	CURLOPT_TIMEOUT	=> 60
);
curl_setopt_array($ch, $options);

$header = curl_exec($ch);
array_map('header',explode("\n", $header));

curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_exec($ch);

curl_close($ch);
